package com.entity.param;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

@ApiModel(value = "MySQL schema信息查询")
@Data
public class MySQLSchemaParam implements Serializable {
    private static final long serialVersionUID = -5392576068340642194L;

    @ApiModelProperty(value = "数据库名称")
    private String databaseName;

    @ApiModelProperty(value = "表名称名称")
    private String tableName;

    @ApiModelProperty(value = "排序字段 -默认升序",notes = "a,b 逗号隔开")
    private String orderByColumn;

    @ApiModelProperty(value = "asc desc")
    private String orderByValue;

    @ApiModelProperty(value = "查询条数 limit")
    private Integer limit;

    @ApiModelProperty(value = "查询条数 offset")
    private Integer offset;

    @ApiModelProperty(value = "时间字段")
    private String dateColumn;

    @ApiModelProperty(value = "条件日期")
    private String dateValue;

    /**
     * 字段列表
     */
    @ApiModelProperty(hidden = true)
    private String columns;
}
